package org.jet.emall.prod.po;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 标准化产品单元
 * </p>
 *
 * @author xiaozai
 * @since 2020-04-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_prod_spu")
@ApiModel(value="ProdSpu对象", description="标准化产品单元")
public class ProdSpu implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "SPU自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "产品名称")
    private String name;

    @ApiModelProperty(value = "SPU编码")
    private String code;

    @ApiModelProperty(value = "产品简介")
    private String brief;

    @ApiModelProperty(value = "分类ID")
    private Integer cateId;

    @ApiModelProperty(value = "品牌ID")
    private Integer brandId;

    @ApiModelProperty(value = "上下架: 1-下架，0-上架")
    private Byte banSale;

    @TableLogic
    @ApiModelProperty(value = "逻辑删除: 1-已删除, 0-未删除")
    private Byte deleted;

    @ApiModelProperty(value = "商品的供应商ID")
    private Integer supplierId;

    @ApiModelProperty(value = "最后修改时间")
    private LocalDateTime modifiedTime;


}
